package com.wc.alorithm_luogu.P2433;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/17 20:34
 * @description https://www.luogu.com.cn/problem/P2433
 * 小学数学 N 合一
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        if (T == 1) {
            // 请输出 I love Luogu!
            System.out.println("I love Luogu!");
        } else if (T == 2) {
            int apples = 10;
            int A = 2;
            int Uim = 4;
            System.out.println((A + Uim) + " " + (apples - A - Uim));
        } else if (T == 3) {
            int apples = 14;
            int student = 4;
            int avg = apples / student;
            int par = student * avg;
            int rest = apples - par;
            System.out.println(avg);
            System.out.println(par);
            System.out.println(rest);
        } else if (T == 4) {
            double ans = 500 / 3.0;
            String s = String.valueOf(ans);
            retainAndOutput(s);
        } else if (T == 5) {
            System.out.println((260 + 220) / (12 + 20));
        } else if (T == 6) {
            double num = Math.pow((6 * 6 + 9 * 9), 0.5);
            String numS = String.valueOf(num);
            retainAndOutput(numS);
        } else if (T == 7) {
            int count = 100;
            count += 10;
            System.out.println(count);
            count -= 20;
            System.out.println(count);
            count -= count;
            System.out.println(count);
        } else if (T == 8) {
            double pai = 3.141593;
            double r = 5;
            retainAndOutput(String.valueOf(2 * pai * r));
            retainAndOutput(String.valueOf(pai * r * r));
            retainAndOutput(String.valueOf(4.0 / 3 * pai * r * r * r));
        } else if (T == 9) {
            int rest = 1;
            int day = 3;
            while (day-- > 0) {
                rest = (rest + 1) * 2;
            }
            System.out.println(rest);
        } else if (T == 10) {
            int k = (30 - 6) / (8 - 10);
            int b = 30 - k * 8;
            System.out.println((10 - b) / k);
        } else if (T == 11) {
            retainAndOutput(String.valueOf(100.0 / (8 - 5)));
        } else if (T == 12) {
            System.out.println('M' - 'A' + 1);
            System.out.println((char) ('A' + 18 - 1));
        } else if (T == 13) {
            double pai = 3.141593;
            double s1 = 4.0 / 3 * 4 * 4 * 4 * pai;
            double s2 = 4.0 / 3 * 10 * 10 * 10 * pai;
            int ans = (int) Math.pow(s1 + s2, 1.0 / 3);
            System.out.println(ans);
        } else if (T == 14) {
            int price = 110;
            int people = 10;

            while (price * people <= 3500) {
                price--;
                people++;
            }

            while (price * people >= 3500) {
                price--;
                people++;
            }
            System.out.println(++price);
        }
    }

    public static void retainAndOutput(String num) {
        String[] split = num.split("\\.");
        // 表示小数点后的有效位数
        int bit = 6 - split[0].length();
        // 小数点有效位置的下一位，来存储四舍五入
        int bitNext = 0;
        if (split[1].length() > bit) {
            bitNext = split[1].charAt(bit) - '0';
            split[1] = split[1].substring(0, bit);
        }
        // 记录小数点前面的整数
        int prePoint = Integer.parseInt(split[0]);

        // 将小数点后面的数转换为整数，方便操作
        int x = Integer.parseInt(split[1]);

        //记录前置0的位数
        int preZero = 0;

        // 记录整数的位数
        int bitInt = x;
        // 记录整数位数的最大值，方便小数点前位+1
        int maxInt = 0;

        while (bitInt != 0) {
            bitInt /= 10;
            preZero++;
            maxInt = maxInt * 10 + 9;
        }
        preZero = split[1].length() - preZero;
        // 判断是否是全进位
        if (x == maxInt && bitNext >= 5) {
            System.out.println(prePoint + 1);
        } else if (!split[1].equals("")) {
            System.out.print(prePoint);
            if (bitNext > 4) {
                x++;
            }
            while (x % 10 == 0) {
                x /= 10;
                preZero--;
            }
            System.out.print('.');
            while (preZero-- > 0) {
                System.out.print('0');
            }
            System.out.println(x);
        } else {
            System.out.println(prePoint);
        }
    }
}
